package com.codi.bus.core.util;

import com.google.common.base.Strings;
import lombok.extern.slf4j.Slf4j;

/**
 * 模块名
 *
 * @author spy
 * @version 1.0 2018-01-26
 * @since 1.0
 */
@Slf4j
public final class DesensitizeUtil {

    public static String parseBankAcco(String bankAcco) {
        if (Strings.isNullOrEmpty(bankAcco)) {
            log.warn("卡号转换异常");
            return "";
        }

        if (bankAcco.length() <= 4) {
            return bankAcco;
        }

        return bankAcco.substring(bankAcco.length() - 4);
    }


}
